package org.apache.harmony.javax.security.sasl;

import java.io.Serializable;
import org.apache.harmony.javax.security.auth.callback.Callback;

public class AuthorizeCallback
  implements Serializable, Callback
{
  private static final long serialVersionUID = -2353344186490470805L;
  private final String authenticationID;
  private final String authorizationID;
  private String authorizedID;
  private boolean authorized;

  public AuthorizeCallback(String paramString1, String paramString2)
  {
    this.authenticationID = paramString1;
    this.authorizationID = paramString2;
    this.authorizedID = paramString2;
  }

  public String getAuthenticationID()
  {
    return this.authenticationID;
  }

  public String getAuthorizationID()
  {
    return this.authorizationID;
  }

  public String getAuthorizedID()
  {
    return this.authorized ? this.authorizedID : null;
  }

  public boolean isAuthorized()
  {
    return this.authorized;
  }

  public void setAuthorized(boolean paramBoolean)
  {
    this.authorized = paramBoolean;
  }

  public void setAuthorizedID(String paramString)
  {
    if (paramString != null)
      this.authorizedID = paramString;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.apache.harmony.javax.security.sasl.AuthorizeCallback
 * JD-Core Version:    0.6.1
 */